package priv.mill.controller;

import java.io.IOException;
import java.util.Date;
import java.util.List;
import java.util.Map;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.alibaba.fastjson.JSON;

import priv.mill.service.EeshoppServer;
import priv.mill.service.GuanlidingdanServer;
import priv.mill.service.adminMessageService;
import priv.mill.util.JdbcUtil;
import priv.mill.util.ResultObject;
public class adminMessageHandler extends HttpServlet{

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		  adminMessageService adminMessageService = new adminMessageService();
		try {
			List<Map<String, Object>> selectAll = adminMessageService.selectAll();
			resp.setContentType("text/html;charset=utf-8");
			resp.getWriter().print(JSON.toJSONString(selectAll));
		} catch (Exception e) {
			e.printStackTrace();
		} 
	}

	
	
}
